package com.xiao.mall.message.service.dto.front;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "UserNotificationFrontDto", description = "消息Dto")
public class UserNotificationFrontDto implements Serializable {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("已读")
    private boolean hasRead;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("主键")
    private Long notificationId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("消息类型")
    private String type;

    @ApiModelProperty("消息主题")
    private String topic;

    @ApiModelProperty("目标ID")
    private String target;

    @ApiModelProperty("目标类型")
    private String targetType;

    @ApiModelProperty("提醒信息的动作类型")
    private String action;

    @ApiModelProperty("创建时间")
    private String createdDate;

//    @ApiModelProperty("消息内容")
//    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
//    private NotificationFrontDto notification;
}
